package com.zuipin.enums;

public enum SerialNumberEnum {
	
	主订单("MO", 4), 商品品牌编号("PRODUCT_BRAND_NO", 4),;
	
	private Integer	size;
	private String	value;
	
	private SerialNumberEnum(String value, Integer size) {
		this.value = value;
		this.size = size;
	}
	
	public Integer getsize() {
		return size;
	}
	
	public void setsize(Integer size) {
		this.size = size;
	}
	
	public String getValue() {
		return value;
	}
	
	public void setValue(String value) {
		this.value = value;
	}
	
	public static String getValueBysize(Integer size) {
		if (size != null) {
			for (SerialNumberEnum c : SerialNumberEnum.values()) {
				if (c.size.equals(size)) {
					return c.value;
				}
			}
		}
		return null;
		
	}
	
	public static void main(String[] args) {
	}
}
